<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<link href="${pageContext.request.contextPath}/static/hplus/css/bootstrap.min.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<script src="${pageContext.request.contextPath}/static/hplus/js/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<link href="${pageContext.request.contextPath}/static/hplus/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/animate.min.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/style.min862f.css?v=4.1.0" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/plugins/iCheck/custom.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/plugins/chosen/chosen.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/plugins/colorpicker/css/bootstrap-colorpicker.min.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/plugins/cropper/cropper.min.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/plugins/switchery/switchery.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/plugins/jasny/jasny-bootstrap.min.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/plugins/nouslider/jquery.nouislider.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/plugins/ionRangeSlider/ion.rangeSlider.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/plugins/ionRangeSlider/ion.rangeSlider.skinFlat.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/plugins/clockpicker/clockpicker.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/animate.min.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/hplus/css/style.min862f.css?v=4.1.0" rel="stylesheet">
<script>



    function chongzhi() {
        $.post("${pageContext.request.contextPath}/xiaoshou/queryAll",function (data) {
            var _this111 = $("#50");
            $(_this111).empty();
            /*$(_this).append("<tr>"+"<td>"+单号+"</td>"+"<td>"+时间+"</td>"+"<td>"+供货商+"</td>"+"<td>"+经办人+"</td>"+"<td>"+总价+"</td>"+"<tr>");*/
            for (var i=0 ;i < data.length;i++) {

                $(_this111).append("<tr >"+"<td id='quzhi'>"+data[i].danhao+"</td>"+"<td>"+data[i].riqi+"</td>"+"<td>"+data[i].membersname+"</td>"+"<td>"+data[i].jingban+"</td>"+"<td>"+data[i].shifu+"</td>"+"<td>"+"<button  onclick='del1(this)' class=\"btn btn-primary\">"+"查看"+"</button>"+"</td>"+"<tr>");
            }
        });


        $.post("${pageContext.request.contextPath}/jinhuo/queryAll",function (data) {
            var _this111 = $("#520");
            $(_this111).empty();
            /*$(_this).append("<tr>"+"<td>"+单号+"</td>"+"<td>"+时间+"</td>"+"<td>"+供货商+"</td>"+"<td>"+经办人+"</td>"+"<td>"+总价+"</td>"+"<tr>");*/
            for (var i=0 ;i < data.length;i++) {

                $(_this111).append("<tr >"+"<td id='quzhi'>"+data[i].danhao+"</td>"+"<td>"+data[i].riqi+"</td>"+"<td>"+data[i].gonghuo+"</td>"+"<td>"+data[i].jingban+"</td>"+"<td>"+data[i].shifu+"</td>"+"<td>"+"<button  onclick='del2(this)' class=\"btn btn-primary\">"+"查看"+"</button>"+"</td>"+"<tr>");
            }
        });

    }

    $(function () {
        $.post("${pageContext.request.contextPath}/jinhuo/queryAll",function (data) {
            var _this111 = $("#520");
            $(_this111).empty();
            /*$(_this).append("<tr>"+"<td>"+单号+"</td>"+"<td>"+时间+"</td>"+"<td>"+供货商+"</td>"+"<td>"+经办人+"</td>"+"<td>"+总价+"</td>"+"<tr>");*/
            for (var i=0 ;i < data.length;i++) {

                $(_this111).append("<tr >"+"<td id='quzhi'>"+data[i].danhao+"</td>"+"<td>"+data[i].riqi+"</td>"+"<td>"+data[i].gonghuo+"</td>"+"<td>"+data[i].jingban+"</td>"+"<td>"+data[i].shifu+"</td>"+"<td>"+"<button  onclick='del2(this)' class=\"btn btn-primary\">"+"查看"+"</button>"+"</td>"+"<tr>");
            }
        });
    });




    $(function () {
        $.post("${pageContext.request.contextPath}/xiaoshou/queryAll",function (data) {
            var _this111 = $("#50");
            $(_this111).empty();
            /*$(_this).append("<tr>"+"<td>"+单号+"</td>"+"<td>"+时间+"</td>"+"<td>"+供货商+"</td>"+"<td>"+经办人+"</td>"+"<td>"+总价+"</td>"+"<tr>");*/
            for (var i=0 ;i < data.length;i++) {

                $(_this111).append("<tr >"+"<td id='quzhi'>"+data[i].danhao+"</td>"+"<td>"+data[i].riqi+"</td>"+"<td>"+data[i].membersname+"</td>"+"<td>"+data[i].jingban+"</td>"+"<td>"+data[i].shifu+"</td>"+"<td>"+"<button  onclick='del1(this)' class=\"btn btn-primary\">"+"查看"+"</button>"+"</td>"+"<tr>");
            }
        });
    });

    function cha1() {
        var yi=$("#yi").val();
        var er=$("#er").val();
        $.post("${pageContext.request.contextPath}/jinxiao/jinhuo",{'yi':yi,'er':er},function (data) {
            var _this111 = $("#520");
            $(_this111).empty();
            /*$(_this).append("<tr>"+"<td>"+单号+"</td>"+"<td>"+时间+"</td>"+"<td>"+供货商+"</td>"+"<td>"+经办人+"</td>"+"<td>"+总价+"</td>"+"<tr>");*/
            for (var i=0 ;i < data.length;i++) {

                $(_this111).append("<tr >"+"<td id='quzhi'>"+data[i].danhao+"</td>"+"<td>"+data[i].riqi+"</td>"+"<td>"+data[i].gonghuo+"</td>"+"<td>"+data[i].jingban+"</td>"+"<td>"+data[i].shifu+"</td>"+"<td>"+"<button  onclick='del2(this)' class=\"btn btn-primary\">"+"查看"+"</button>"+"</td>"+"<tr>");
            }
        });
        cha2()
    }


    function cha2() {
        var yi=$("#yi").val();
        var er=$("#er").val();
        $.post("${pageContext.request.contextPath}/jinxiao/xiaoshou",{'yi':yi,'er':er},function (data) {
            var _this111 = $("#50");
            $(_this111).empty();
            /*$(_this).append("<tr>"+"<td>"+单号+"</td>"+"<td>"+时间+"</td>"+"<td>"+供货商+"</td>"+"<td>"+经办人+"</td>"+"<td>"+总价+"</td>"+"<tr>");*/
            for (var i=0 ;i < data.length;i++) {

                $(_this111).append("<tr >"+"<td id='quzhi'>"+data[i].danhao+"</td>"+"<td>"+data[i].riqi+"</td>"+"<td>"+data[i].membersname+"</td>"+"<td>"+data[i].jingban+"</td>"+"<td>"+data[i].shifu+"</td>"+"<td>"+"<button  onclick='del1(this)' class=\"btn btn-primary\">"+"查看"+"</button>"+"</td>"+"<tr>");
            }
        });
    }





    function del1(_this111) {
        var id = $(_this111).parent().parent().children("td").eq(0).html();
        console.log(id);

        $.post('${pageContext.request.contextPath}/xiaoshouxx/cx',{dh:id},function(data){

            var _this = $("#111");
            $(_this).empty();
            /*$(_this).append("<tr>"+"<td>"+单号+"</td>"+"<td>"+时间+"</td>"+"<td>"+供货商+"</td>"+"<td>"+经办人+"</td>"+"<td>"+总价+"</td>"+"<tr>");*/
            for (var i=0 ;i < data.length;i++) {
                /*                "<tr >"+"<td id='quzhi'>"+data[i].danhao+"</td>"+"<td>"+data[i].riqi+"</td>"+"<td>"+data[i].gonghuo+"</td>"+"<td>"+data[i].jingban+"</td>"+"<td>"+data[i].shifu+"</td>"+"<td>"+"<button  onclick='del2(this)' class=\"btn btn-primary\">"+"查看"+"</button>"+"</td>"+"<tr>"*/
                $(_this).append(
                    "<div  class=\"vertical-timeline-block\">"+" <div class=\"vertical-timeline-block\"><div class=\"vertical-timeline-icon navy-bg\"><i class=\"fa fa-briefcase\"></i></div>"+"<div class=\"vertical-timeline-content\">"+"<h3>"+data[i].spname+"</h3>"+"<h2>"+"数量: "+data[i].spshu+"  单价: "+data[i].spjia+"   总价: "+data[i].spzong+"   地区: "+data[i].diqu+"</h2>" +"<span class=\"vertical-date\">"+"</div>"+"</div>");
            }
        })
    }









    function del2(_this111) {
        var id = $(_this111).parent().parent().children("td").eq(0).html();
        console.log(id);

        $.post('${pageContext.request.contextPath}/jinhuoxx/cx',{dh:id},function(data){

            var _this = $("#111");
            $(_this).empty();
            /*$(_this).append("<tr>"+"<td>"+单号+"</td>"+"<td>"+时间+"</td>"+"<td>"+供货商+"</td>"+"<td>"+经办人+"</td>"+"<td>"+总价+"</td>"+"<tr>");*/
            for (var i=0 ;i < data.length;i++) {
/*                "<tr >"+"<td id='quzhi'>"+data[i].danhao+"</td>"+"<td>"+data[i].riqi+"</td>"+"<td>"+data[i].gonghuo+"</td>"+"<td>"+data[i].jingban+"</td>"+"<td>"+data[i].shifu+"</td>"+"<td>"+"<button  onclick='del2(this)' class=\"btn btn-primary\">"+"查看"+"</button>"+"</td>"+"<tr>"*/
                $(_this).append(
                    "<div  class=\"vertical-timeline-block\">"+" <div class=\"vertical-timeline-block\"><div class=\"vertical-timeline-icon blue-bg\"><i class=\"fa fa-briefcase\"></i></div>"+"<div class=\"vertical-timeline-content\">"+"<h3>"+data[i].spname+"</h3>"+"<h2>"+"数量"+data[i].spshu+"  单价"+data[i].spjia+"   总价"+data[i].spzong+"</h2>" +"<span class=\"vertical-date\">"+"</div>"+"</div>");
            }
        })
    }




</script>
<!-- Mirrored from www.zi-han.net/theme/hplus/clients.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:44 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>H+ 后台主题UI框架 - 客户管理</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="favicon.ico"> <link href="${pageContext.request.contextPath}/static/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">

    <link href="${pageContext.request.contextPath}/static/css/animate.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/css/style.min862f.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">




<div id="div1" class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-sm-8">
            <div class="ibox">
                <div  style=" overflow-y:auto; overflow-x:auto;  " class="ibox-content">

                    <h2>进销统计</h2>
                    <div class="input-group"style="width: 378px;">
                        <div class="form-group" id="data_5" style="width: 378px;">
                            <label class="font-noraml">范围选择</label>
                            <div class="input-daterange input-group" id="datepicker">
                                <input id="yi" type="text" class="input-sm form-control" name="start" value="2018-11-1" />
                                <span class="input-group-addon">到</span>
                                <input id="er" type="text" class="input-sm form-control" name="end" value="2018-12-1" />
                            </div>

                        </div>
                        <span class="input-group-btn">
<button style="margin-top: 8px" type="button" id="btn" onclick="cha1()" class="btn btn btn-primary"> <i class="fa fa-search"></i></button>  <button style="margin-top: 8px" type="button" id="" onclick="chongzhi()" class="btn btn btn-primary">重置</button>
                                </span>
                    </div>
                    <div class="clients-list">
                        <ul class="nav nav-tabs">

                            <li class="active"><a data-toggle="tab" href="#tab-1"><i class="fa fa-user"></i> 进货</a>
                            </li>
                            <li class=""><a data-toggle="tab" href="#tab-2"><i class="fa fa-briefcase"></i> 销售</a>
                            </li>
                        </ul>
                        <div class="tab-content">
                            <div id="tab-1" class="tab-pane active">
                                <div class="full-height-scroll">
                                    <div class="table-responsive">
                                        <table class="table table-striped table-hover">
                                            <tr>
                                                <td>单号</td>
                                                <td>时间</td>
                                                <td>供货商</td>
                                                <td>经办人</td>
                                                <td>总额</td>
                                                <td style="padding-left: 21px">操作</td>

                                            </tr>

                                            <tbody id="520">



                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                            <div id="tab-2" class="tab-pane">
                                <div class="full-height-scroll">
                                    <div class="table-responsive">
                                        <table class="table table-striped table-hover">
                                            <tr>
                                                <td>单号</td>
                                                <td>时间</td>
                                                <td>合作商</td>
                                                <td>经办人</td>
                                                <td>总额</td>
                                                <td style="padding-left: 21px">操作</td>

                                            </tr>
                                            <tbody id="50">

                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-4">
            <div class="ibox ">

                <div class="ibox-content">
                    <div class="tab-content">
                        <div id="contact-1" class="tab-pane active">
                            <div class="row m-b-lg">

                            </div>
                            <div  style=" overflow-y:auto; overflow-x:auto;  " class="client-detail">
                                <div class="full-height-scroll">

                                    <strong>详细商品</strong>

                                    <hr/>
                                    <div id="111"  class="vertical-container light-timeline">


                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${pageContext.request.contextPath}/static/js/jquery.min.js?v=2.1.4"></script>
<script src="${pageContext.request.contextPath}/static/js/bootstrap.min.js?v=3.3.6"></script>
<script src="${pageContext.request.contextPath}/static/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/content.min.js?v=1.0.0"></script>

<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>


<script src="${pageContext.request.contextPath}/static/hplus/js/jquery.min.js?v=2.1.4"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/bootstrap.min.js?v=3.3.6"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/content.min.js?v=1.0.0"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/plugins/chosen/chosen.jquery.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/plugins/jsKnob/jquery.knob.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/plugins/jasny/jasny-bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/plugins/prettyfile/bootstrap-prettyfile.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/plugins/nouslider/jquery.nouislider.min.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/plugins/switchery/switchery.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/plugins/ionRangeSlider/ion.rangeSlider.min.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/plugins/iCheck/icheck.min.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/plugins/clockpicker/clockpicker.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/plugins/cropper/cropper.min.js"></script>
<script src="${pageContext.request.contextPath}/static/hplus/js/demo/form-advanced-demo.min.js"></script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/clients.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:44 GMT -->
</html>
